package com.gxm.jar.guava;

import com.google.common.base.Objects;
import org.junit.Test;

public class ObjectsDemo {
    @Test
    public void demo1(){
        Objects.equal("a", "a"); // returns true
        Objects.equal(null, "a"); // returns false
        Objects.equal("a", null); // returns false
        Objects.equal(null, null); // returns true
        String s = null;
        //s.equals("a");
        java.util.Objects.equals(null, "a");
    }
}
